|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectga.core.goperators.ProbabilityOp
furny.ga.operators.OnePointCrossoverOp
public class OnePointCrossoverOp
The one point crossover operator cuts the genotype into two segments which are interchanged.
Constructor Summary | |
---|---|
OnePointCrossoverOp(int pCrossOver)
Creates the operator with a given crossover probability. |
Method Summary | |
---|---|
IndividualList<FurnLayoutIndividual> |
crossover(FurnLayoutIndividual individual1,
FurnLayoutIndividual individual2,
GAContext context)
Performs a crossover (if probability met) of the given individuals and returns a list of the results. |
static void |
main(java.lang.String[] args)
Main method for testing. |
Methods inherited from class ga.core.goperators.ProbabilityOp |
---|
doOperate, doOperate, getRandom |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OnePointCrossoverOp(int pCrossOver)
pCrossOver
- Crossover probability.Method Detail |
---|
public IndividualList<FurnLayoutIndividual> crossover(FurnLayoutIndividual individual1, FurnLayoutIndividual individual2, GAContext context)
ICrossoverOp
crossover
in interface ICrossoverOp<FurnLayoutIndividual>
individual1
- First individualindividual2
- Second individualcontext
- The GA context.
public static void main(java.lang.String[] args)
args
- No arguments required.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |